package com.neusoft.classch75;

import java.util.Scanner;

public class Gardener {
	//水果
	static IFruit[] fruits;

	// 种水果
	public void Create(String fruit) {
		
		
		if(fruit.equals("苹果")) {
			Apple apple = new Apple();
		}else if(fruit.equals("香蕉")) {
			Banana banana = new Banana();
		}else if(fruit.equals("葡萄")) {
			Grape grape = new Grape();
		}else {
			System.out.println("输入错误，无法创建");
		}

	}
}
